<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主生产计划</title>
    <script src="https://www.itxst.com/package/ag-grid/ag-grid-community.js"></script>
    
    <link href="https://www.itxst.com/package/ag-grid/styles/ag-grid.css" rel="stylesheet"/>
</head>
<body>
    <form>
    <label>需求时界：</label><input id="xqsj">
    <br/>
    <label>计划时界：</label><input id="jhsj">
    <br/>
    <label>期数：</label><input id="qs">
    <br/>
    <label>提 前 期：</label><input id="tqq">
    <br/>
    <label>批   量：</label><input id="pl">
    <br/>
    <label>安全库存：</label><input id="aqkc">
    <br/>
    <label>可用库存：</label><input id="kykc">
    </form>
    <br/>
    <button id="scbd" type="button">生成表单</button>
    <script>
     
    let xqsj = document.getElementById('xqsj')
    let jhsj = document.getElementById('jhsj')
    let qs = document.getElementById('qs')
    let tqq = document.getElementById('tqq')
    let pl = document.getElementById('pl')
    let aqkc = document.getElementById('aqkc')
    var kykc = document.getElementById('kykc')
    let scbd = document.getElementById('scbd')
    
    scbd.onclick =  function(){
        window.location.href='./index2.html?'+'&'+xqsj.value+'&'+jhsj.value+'&'+qs.value+'&'+tqq.value+'&'+pl.value+'&'+aqkc.value+'&'+kykc.value
    }
   
    </script>
</body>
</html>
